package com.foreverwin.jzymes.report.nc.controller;

import com.foreverwin.jzymes.common.domain.NcData;
import com.foreverwin.jzymes.common.util.CommonMethods;
import com.foreverwin.jzymes.framework.base.AjaxResult;
import com.foreverwin.jzymes.report.nc.service.ICarrierNCReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/report/nc")
public class CarrierNCReportController  {
    @Autowired
    ICarrierNCReportService carrierNCReportService;

    @RequestMapping("/NcRecordreport")
    public AjaxResult NcRecordreport(@RequestParam Map<String,Object> jsonMap){
        jsonMap.put( "site" , CommonMethods.getSite());
        List < NcData > ncDatas = carrierNCReportService.searchCarrierNCReport( jsonMap );
        return  AjaxResult.returnSuccess().put("value" , ncDatas);
    }
}
